From 88753797ee06b5d4958a7ccea22de8dba55032f6 Mon Sep 17 00:00:00 2001 From: Ell Date: Sun, 10 Sep 2017 11:27:43 -0400 Subject: [PATCH] babl: in babl-trc.c, fix babl_powf() --- babl/babl-trc.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/babl/babl-trc.c b/babl/babl-trc.c index b7a9717..6f97d83 100644 --- a/babl/babl-trc.c +++ b/babl/babl-trc.c @@ -366,10 +366,8 @@ static inline float obabl_powf(float x, float y) static inline float babl_powf (float x, float y) { - float ret; - ret = expf (y * logf (x)); - if (ret < 0.0 || ret < 0.0f) - return ret; + if (x > 0.0f) + return expf (y * logf (x)); return 0.0f; } -- 2.30.2